package com.financial.service.heemoney.convertor;

import com.financial.service.heemoney.dto.HeemoneyConfigDTO;
import com.financial.service.heemoney.dto.businsess.HeemoneyRefundQueryBusinessDTO;
import com.financial.service.heemoney.dto.commmon.HeemoneyRefundQueryCommonDTO;
import com.financial.service.heemoney.dto.inparameter.HeemoneyRefundInParamDTO;
import com.financial.service.heemoney.dto.inparameter.HeemoneyRefundQueryInParamDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @Author: wenguoqiang
 * @Email wguoqiango@163.com
 * @Date: 2019/12/6 0006 上午 10:34
 * @Des
 */
@Mapper
public interface HeemoneyRefundQueryConvert {

    HeemoneyRefundQueryConvert MAPPER = Mappers.getMapper(HeemoneyRefundQueryConvert.class);

    @Mapping(target = "method", source = "heemoneyConfigDTO.heemoneyRefund.method")
    @Mapping(target = "key",source ="heemoneyConfigDTO.heemoneyPayType.key")
    HeemoneyRefundQueryCommonDTO configConvertCommonDTO(HeemoneyConfigDTO heemoneyConfigDTO, HeemoneyRefundQueryInParamDTO heemoneyRefundQueryInParamDTO);


    HeemoneyRefundQueryBusinessDTO convertBusinessDTO(HeemoneyRefundQueryInParamDTO heemoneyRefundQueryInParamDTO);
}
